/**
 * @name: peng
 * @author: pengxiaoqi
 * @date: 2022/4/30 2:41 下午
 * @description：peng
 * @update: 2022/4/30 2:41 下午
 */
import request from '../http'
import qs from 'qs'

const peng = {
  workbenchTopData(params) {
    return request({
      url: '/workbench/topData',
      method: 'post',
      data: params,
    })
  },
  nucleicInfo(params) {
    return request({
      url: '/workbench/nucleicInfo',
      method: 'post',
      params,
    })
  },
  nucleicInfoDetail(params) {
    return request({
      url: '/workbench/nucleicInfoDetail',
      method: 'post',
      params,
    })
  },
  emergencyInfo(params) {
    return request({
      url: '/workbench/emergencyInfo',
      method: 'post',
      params,
    })
  },
  queryYangPersonal(params) {
    return request({
      url: '/yangManage/queryYangPersonal',
      method: 'get',
      params,
    })
  },
  //查询所有小区
  getSubBuildList(params) {
    return request({
      url: '/basic/getSubBuildList',
      method: 'get',
      params,
    })
  },
  //查询阳性人数未转运人数数量
  queryYangNum(params) {
    return request({
      url: '/yangManage/queryYangNum',
      method: 'get',
      params,
    })
  },
  //转运治愈登记
  personalStatusCommit(params) {
    return request({
      url: '/yangManage/personalStatusCommit',
      method: 'post',
      data: params,
    })
  },
  //查询阳性居民详情信息
  queryYangPersonalDetails(params) {
    return request({
      url: '/yangManage/queryYangPersonalDetails',
      method: 'get',
      params,
    })
  },
  //居民最新情况导出
  exportYangPersonal(params) {
    return request({
      url: '/yangManage/exportYangPersonal',
      method: 'get',
      responseType: 'arraybuffer',
      params,
    })
  },
  //核酸检测申请列表
  queryNucleinDetectionApplyRecord(params) {
    return request({
      url: '/pcNucleic/queryNucleinDetectionApplyRecord',
      method: 'get',
      params,
    })
  },
  //获取居民列表
  getInhabitList(params) {
    return request({
      url: '/basic/getInhabitList',
      method: 'get',
      params,
    })
  },
  //新增核酸检测记录
  queryNucleinDetectionApplyRecord1(params) {
    return request({
      url: 'pcNucleic/insertNucleinDetectionApplyRecord',
      method: 'post',
      data: params,
    })
  },
  //人员导入模版下载
  downloadExl() {
    return request({
      url: '/pcNucleic/downloadNucleinDetectionApplyRecordModel',
      method: 'get',
      responseType: 'arraybuffer',
    })
  },
  //人员导入
  exportExl(params) {
    return request({
      url: '/pcNucleic/uploadNucleinDetectionApplyRecordList',
      method: 'post',
      data: params
    })
  },
  //查看接口
  LookNucleinDetectionApplyRecord(params) {
    return request({
      url: '/pcNucleic/LookNucleinDetectionApplyRecord',
      method: 'get',
      params
    })
  },
  //核酸检测结果查询
  queryNucleinDetectionResult(params) {
    return request({
      url: '/pcNucleic/queryNucleinDetectionResult',
      method: 'get',
      params
    })
  },
  //核酸检测结果详情
  queryNucleinDetectionResultDetails(params) {
    return request({
      url: '/pcNucleic/queryNucleinDetectionResultDetails',
      method: 'get',
      params
    })
  },
  //导出核酸检测结果详情
  exportNucleinDetectionResultDetails(params) {
    return request({
      url: 'pcNucleic/exportNucleinDetectionResultDetails',
      method: 'get',
      responseType: 'arraybuffer',
      params
    })
  },
  //导出核酸检测结果详情
  uploadNucleinDetectionResultDetails(params) {
    return request({
      url: '/pcNucleic/uploadNucleinDetectionResultDetails',
      method: 'post',
      data: params
    })
  },
  //修改检测结果
  updateDetectionResult(params) {
    return request({
      url: '/pcNucleic/updateDetectionResult',
      method: 'get',
      params
    })
  },
  //查看密接
  querycloseContactInfo(params) {
    return request({
      url: '/pcNucleic/querycloseContactInfo',
      method: 'get',
      params
    })
  },
  //通知登记
  noticeRegister(params) {
    return request({
      url: '/pcNucleic/noticeRegister',
      method: 'get',
      params
    })
  }
}
export default peng
